\documentclass[a4paper,12pt]{article}

\usepackage{mathtext}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[english,ukrainian]{babel}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{amsfonts,amsmath,stmaryrd}
%\usepackage{makeidx,bezier,psfig,latexsym,epsfig,layout,longtable,amsthm}
%\usepackage{graphics}
%\usepackage{txfonts}
\usepackage{textcomp}
\usepackage{float}
\usepackage{subfig}
\usepackage[pdftex]{color,graphicx}
\usepackage{graphicx}
\usepackage{indentfirst}
%\usepackage[mathcal]{euscript}

\DeclareGraphicsRule{.jpeg}{.bmp}{}{}
\pagestyle{plain}
\textwidth 16 cm
\textheight 24.5cm
\topmargin -1 cm
\evensidemargin 0 cm
\oddsidemargin 0 cm

\begin{document}
\selectlanguage{ukrainian}
\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}

\include{title}
\tableofcontents
\include{introduction}
\include{rl}
\include{task}
\include{conclusions}
\include{literature}

\end{document}
